package com.carlosk.kandicar.domain.ui;

import java.io.File;

import com.carlosk.kandicar.domain.BaseDomain;

/**
 * 文件的对象
 * 
 * @author carlos carlosk@163.com
 * @version 创建时间：2014年5月19日 下午1:56:49 类说明
 */

public class FileDomain extends BaseDomain {

	public static final int Stauts_Wait_Upload = 0;
	public static final int Stauts_Uploading = 1;
	public static final int Stauts_Uploaded = 2;
	public static final int Stauts_UnUploaded = 3;
	private String id;
	private String path;// 路径
	private boolean isFile;// 是否是文件
	private FileDomain frontFileDomain;// 上一级的对象
	private boolean isSeleted;// 是否已选择
	private File file;// 文件对象
	private String fileName;// 文件名
	private int status = Stauts_Wait_Upload;// 状态,0为等待上传,1为正在上传,2为已上传,3为上传失败

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public FileDomain getFrontFileDomain() {
		return frontFileDomain;
	}

	public void setFrontFileDomain(FileDomain frontFileDomain) {
		this.frontFileDomain = frontFileDomain;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public boolean isFile() {
		return isFile;
	}

	public void setFile(boolean isFile) {
		this.isFile = isFile;
	}

	public boolean isSeleted() {
		return isSeleted;
	}

	public void setSeleted(boolean isSeleted) {
		this.isSeleted = isSeleted;
	}

}
